package cn.tedu.spring.dibase;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBook {
    public static void main(String[] args) {

        //1.创建IoC容器
        ApplicationContext context = new ClassPathXmlApplicationContext("bean-di.xml");
        //2.获取 Bean 对象;
        Book book = context.getBean(Book.class);
        System.out.println("book = "+book);
        //3.使用 Bean 对象;



    }
}
